<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2019 广东卓锐软件有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------

namespace app\api\validate;


/**
 * 登录验证
 * @package app\login\validate
 */
class LoginValidate extends BaseValidate
{

    public $rule = [

        'phone' => 'require|isMobile',
        'code' => 'require',
    ];

    protected $message = [

        'phone.require' => '请输入手机号',
        'phone.isMobile' => '请输入正确手机号',
        'code.require' => '请输入验证码',

    ];

    protected $scene = [

        'codeLogin' => [ 'phone','code'],//用户登录
        'sendCode' => [ 'phone'],//发送验证码
    ];




}
